package com.knight.jdk8.stream;

import java.util.stream.IntStream;

/**
 * @Description: 流的基本使用
 * @author: knight
 * @Date: 2019-05-02 8:57
 */
public class StreamTest2 {
    public static void main(String[] args) {
        IntStream.of(1, 2, 3, 4).forEach(System.out::println);

        System.out.println("------------------");

        IntStream.range(3,9).forEach(System.out::println);
    }
}
